<template>
  <div class="design_container">
    <div class="contain">
      <div class="image">
        <img src="./images/design.png" />
      </div>
      <div class="text">登录后才可以看到你的设计</div>
      <div class="btn" @click="showLogin = true">立即登录</div>
    </div>
    <van-popup
      v-model="showLogin"
      position="bottom"
      :style="{ height: '80%' }"
      closeable
    >
      <div class="form-item">
        <h2>快捷登录</h2>
        <div class="inp">
          <div class="inp-wrap">
            <input type="text" placeholder="请输入手机号" />
          </div>
          <div class="inp-wrap">
            <input type="text" placeholder="请输入验证码" />
            <div class="verification">获取验证码</div>
          </div>
        </div>
        <div class="pwdorreg">
          <span class="blue">账号密码登录</span>
          <span class="blue">注册账号</span>
        </div>
        <div class="btn">登录</div>
        <div class="protocol">
          登录即同意
          <span class="taro-text blue">用户协议</span>
          和
          <span class="taro-text blue">隐私协议</span>
        </div>
        <div class="other-ways">
          <div class="title">其他方式登录</div>
          <div class="ways-con">
            <img src="./images/ways.png" alt="" />
          </div>
        </div>
      </div>
    </van-popup>
  </div>
</template>

<script>
export default {
  name: "Design",
  props: [],
  data() {
    return {
      showLogin: false,
    };
  },
  created() {},
  methods: {},
};
</script>

<style lang="less" scoped>
.design_container {
  height: 100%;
  .contain {
    position: relative;
    width: 190px;
    height: 190px;
    top: calc(50vh - 100px);
    left: 50vw;
    text-align: center;
    transform: translate(-50%, -50%);
    .image {
      width: 100px;
      height: 100px;
      margin: auto;
      img {
        width: 100%;
      }
    }
    .text {
      color: rgba(0, 0, 0, 0.6);
      font-size: 14px;
      margin-top: 5px;
    }
    .btn {
      width: 190px;
      height: 44px;
      margin-top: 20px;
      border-radius: 22px;
      background: #0773fc;
      line-height: 44px;
      color: #fff;
      font-size: 16px;
      text-align: center;
    }
  }

  .van-popup {
    // position: relative;
    border-radius: 10px;

    .form-item {
      padding: 48px 50px;
      h2 {
        text-align: center;
        margin-bottom: 28px;
      }
      .inp {
        margin-bottom: 5px;
        .inp-wrap {
          position: relative;
          border-bottom: 1px solid #eee;
          input {
            height: 48px;
            color: #999a99;
            border: 0;
            outline: 0;
          }
          .verification {
            position: absolute;
            top: 50%;
            right: 0;
            transform: translateY(-50%);
            font-size: 13px;
            line-height: 29px;
            background: #f7f8f9;
            color: #1b2337;
            padding: 0 12px;
            border-radius: 15px;
          }
        }
      }
      .pwdorreg {
        display: flex;
        justify-content: space-between;
        font-size: 13px;
        margin-bottom: 37px;
      }

      .btn {
        width: 275px;
        height: 48px;
        color: white;
        font-size: 16px;
        text-align: center;
        line-height: 48px;
        border-radius: 24px;
        background-color: #0773fc;
        margin-bottom: 16px;
      }
      .protocol {
        color: rgba(0, 0, 0, 0.4);
        font-size: 12px;
        text-align: center;
        margin-bottom: 53px;
      }
      .blue {
        color: #217dfd;
      }
      .other-ways {
        display: flex;
        flex-direction: column;
        align-items: center;
        .title {
          color: #000;
          font-size: 13px;
          margin-bottom: 13px;
          font-weight: 700;
        }
        .ways-con {
          img {
            width: 50px;
            height: 50px;
          }
        }
      }
    }
  }
}
</style>